.class Lcom/netease/newsreader/activity/FeedBackActivity$5;
.super Ljava/lang/Object;
.source "FeedBackActivity.java"

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/FeedBackActivity;->setListener()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private length:I

.field private temp:Ljava/lang/CharSequence;

.field final synthetic this$0:Lcom/netease/newsreader/activity/FeedBackActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/FeedBackActivity;)V
    .locals 1
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->this$0:Lcom/netease/newsreader/activity/FeedBackActivity;

    .line 111
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 113
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->length:I

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 0
    .parameter "arg0"

    .prologue
    .line 117
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .parameter "arg0"
    .parameter "arg1"
    .parameter "arg2"
    .parameter "arg3"

    .prologue
    .line 123
    iput-object p1, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->temp:Ljava/lang/CharSequence;

    .line 124
    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 3
    .parameter "arg0"
    .parameter "arg1"
    .parameter "arg2"
    .parameter "arg3"

    .prologue
    .line 130
    iget-object v0, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->temp:Ljava/lang/CharSequence;

    invoke-interface {v0}, Ljava/lang/CharSequence;->length()I

    move-result v0

    rsub-int v0, v0, 0x1f4

    iput v0, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->length:I

    .line 131
    iget-object v0, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->this$0:Lcom/netease/newsreader/activity/FeedBackActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/FeedBackActivity;->access$11(Lcom/netease/newsreader/activity/FeedBackActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u8fd8\u53ef\u8f93\u5165<font color=\"#e80f0f\">"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v2, p0, Lcom/netease/newsreader/activity/FeedBackActivity$5;->length:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "</font>\u5b57"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 133
    return-void
.end method
